package com.api.mc
{
	import com.game.btnClass.AddMouseEvent;
	import com.game.btnClass.BtnClass_goto;
	import com.game.display.AutoGCMovieClip;
	
	import flash.display.MovieClip;
	import flash.text.TextField;
	
	public class AlertMain extends AutoGCMovieClip
	{
		public var dis_txt:TextField;
		public var enterBtn_mc:MovieClip;
		private var _btnClassScaleList:Vector.<AddMouseEvent>=new Vector.<AddMouseEvent>();
		public function AlertMain(str:String,fun:Function)
		{
			dis_txt.text=str;
			_btnClassScaleList.push(new BtnClass_goto(enterBtn_mc,fun));
		}
		public function gc():void
		{
			for(var i:int=0;i<_btnClassScaleList.length;i++){
				_btnClassScaleList[i].delMouseEvent();
			}
			_btnClassScaleList=null;
		}
	}
}